import axios from "axios";
export default function(instance){
    const request=axios.create({
        baseURL:"http://127.0.0.1:8888/api/private/v1",
        timeout:5000
    })
    request.interceptors.request.use(config=>{
        config.headers.Authorization=window.sessionStorage.getItem("token")
        console.log(config)
        return config
    })
    return request(instance)
}